package com.user.feignClient;

import com.microservice.entity.Role;
        import org.springframework.cloud.netflix.feign.FeignClient;
        import org.springframework.web.bind.annotation.PathVariable;
        import org.springframework.web.bind.annotation.RequestMapping;
        import org.springframework.web.bind.annotation.RequestMethod;

        import java.util.List;

/**
 * @author:wesley
 */

@FeignClient(value = "microservice-role")
public interface UserFeignClient {

    @RequestMapping(value = "/list/byUser/{userId}", method = RequestMethod.GET)
    public List<Role> getRolesByUserId(@PathVariable("userId") Integer userId);


    @RequestMapping(value = "/save",method = RequestMethod.POST)
    public void saveRole();

}
